import request from "@/utils/request";

export function dictionaryQueryListByName(data) {
  return request({
    url: `/dictionary/queryListByName`,
    method: "post",
    data
  });
}

// 根据类型查询参数
export function settingsQueryList(params) {
  return request({
    url: `/settings/queryList/${params.type}`,
    method: "get"
  });
}

// 不良品选项查询
export function ngTypeQueryPage(data) {
  return request({
    url: "/ngType/queryPage",
    method: "post",
    data
  });
}

// 捡包成品报表
export function endProductQueryAll(data) {
  return request({
    url: `/endProduct/queryAll`,
    method: "post",
    data
  });
}

// 添加不良品类型
export function ngTypeAdd(data) {
  return request({
    url: "/ngType/add",
    method: "post",
    data
  });
}

// 根据id删除记录
export function ngTypeRemoveInId(data) {
  return request({
    url: "/ngType/removeInId",
    method: "post",
    data
  });
}

// 启用、禁用
export function ngTypeChangeStatusById(data) {
  return request({
    url: "/ngType/changeStatusById",
    method: "post",
    data
  });
}

